package com.yanqu.road.entity.log.cross.xingyou;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_c_log_xing_you_building_state", autoSave = true, desc = "行游山水-建筑闭园", dataUpload = true, eventName = "mouwater_close", uploadCk = true, isCross = true)
public class LogCrossXingYouBuilding extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid")
    private int activityId;

    @FieldTypeAnnotation(isIndex = true, desc = "分组id")
    private int groupId;

    @FieldTypeAnnotation(desc = "队伍ID", isIndex = true)
    private int teamId;

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "位置", dataAttribute = "mouwater_grid")
    private int pos;

    @FieldTypeAnnotation(desc = "格子", dataAttribute = "mouwater_build")
    private int gridId;

    @FieldTypeAnnotation(desc = "类型：1：施加；2：获得；3：开工利是", dataAttribute = "mouwater_type")
    private int actionType;

    @FieldTypeAnnotation(desc = "施加的目标队伍", dataAttribute = "team_id")
    private int targetTeamId;

    @FieldTypeAnnotation(desc = "变更值", dataAttribute = "mouwater_change")
    private int addTimes;

    @FieldTypeAnnotation(desc = "当前值", dataAttribute = "mouwater_clonum")
    private int nowTimes;

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogCrossXingYouBuilding(int activityId, int teamId, long userId, int pos, int gridId, int actionType, int targetTeamId, int addTimes, int nowTimes) {
        this.activityId = activityId;
        this.teamId = teamId;
        this.userId = userId;
        this.pos = pos;
        this.gridId = gridId;
        this.actionType = actionType;
        this.targetTeamId = targetTeamId;
        this.addTimes = addTimes;
        this.nowTimes = nowTimes;
        this.logTime = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        this.groupId = groupId;
    }

    public int getTeamId() {
        return teamId;
    }

    public void setTeamId(int teamId) {
        this.teamId = teamId;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getPos() {
        return pos;
    }

    public void setPos(int pos) {
        this.pos = pos;
    }

    public int getGridId() {
        return gridId;
    }

    public void setGridId(int gridId) {
        this.gridId = gridId;
    }

    public int getActionType() {
        return actionType;
    }

    public void setActionType(int actionType) {
        this.actionType = actionType;
    }

    public int getAddTimes() {
        return addTimes;
    }

    public void setAddTimes(int addTimes) {
        this.addTimes = addTimes;
    }

    public int getTargetTeamId() {
        return targetTeamId;
    }

    public void setTargetTeamId(int targetTeamId) {
        this.targetTeamId = targetTeamId;
    }

    public int getNowTimes() {
        return nowTimes;
    }

    public void setNowTimes(int nowTimes) {
        this.nowTimes = nowTimes;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
